package com.microservice.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.microservice.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * write something please~
 *
 * @author huangrz
 * @since 2021/9/14
 **/
@EqualsAndHashCode(callSuper = true)
@TableName("tb_order")
@Data
public class OrderEntity extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String orderNo;

    private String name;

    private BigDecimal price;

    private Integer quantity;

}
